Fixed Reader
The reader allows to update software includes the OS, applications from the given FTP Server location. If supported by Reader, the API also supports the push model software update, which allows updating software from non-FTP locations also. This is currently supported on FX 7400 Version 1.1.0 and higher. The following snippet shows setting of update location from local D: drive.
SoftwareUpdateInfo
info = new SoftwareUpdateInfo(
"D://Platform112",
null, null);
The method rm.SoftwareUpdate.Update helps to perform the software update functionality.
Hand held reader
The reader radio firmware can be updated using rm.RadioFirmwareUpdate.Update
method. The reader radio config (OEM) data can be updated using rm.RadioConfigUpdate.Update
method.
The firmware or software update progress status can be queried by calling property UpdateStatus of class SoftwareUpdate, RadioFirmwareUpdate and RadioConfigUpdate which gives which gives the percentage of upload completed along with additional information like partition name and/or details of operation in progress at reader.
// Reader software update
try
{
SoftwareUpdateInfo ftpServerInfo = new SoftwareUpdateInfo();
ftpServerInfo.HostName = @"ftp://157.235.88.198/pub/XR400/TestRelease/Rev_3_3_7";
ftpServerInfo.UserName = "admin";
ftpServerInfo.Password = "admin";
rm.SoftwareUpdate.Update(ftpServerInfo);
UpdateStatus updateStatus;
while (true)
{
updateStatus =
rm.SoftwareUpdate.UpdateStatus;
Console.WriteLine("UpdateSoftware.GetUpdateStatus
is " + updateStatus.Percentage.ToString());
if
(updateStatus.Percentage == 100)
break;
}
}
catch (OperationFailureException exception)
{
Console.WriteLine("UpdateSoftware
failed " + exception.Message);
}